<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
 <style type="text/css">
 	.infoContent,.infoTitle{
	    width:100px;
		text-overflow:ellipsis;
		white-space:nowrap;
		overflow:hidden;
	} 
</style>
<div class="table-responsive"> 
<table class="cntable table table-bordered dataTable table-shareInfo ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th data-sortable="true" data-field="infoType" style="width:100px">资讯类型</th>
			<th style="width:100px">资讯标题</th>
			<th style="width:100px">资讯作者</th>
			<!-- <th style="width:100px">资讯内容</th>  -->
			<th data-sortable="true" data-field="viewtimes" style="width:100px">浏览次数</th>
			<th data-sortable="true" data-field="createDate" style="width:100px">创建时间</th>
		</tr>
	</thead>
	<tbody>
	  <c:forEach var="shareInfo" items="${shareInfos}" varStatus="status">
		<tr data-id="${shareInfo.id}">
		 <td>${status.index+1}</td> 
		   <td><t:provider packageName="share" enumClassName="ShareInfoState"
						value="${shareInfo.infoType}" /></td> 
			    <td><div class="infoTitle" title="${shareInfo.infoTitle}">${shareInfo.infoTitle}</div></td>
				<td>${shareInfo.infoAuthor}</td>
				<%-- <td>
					<div class="infoContent" title="${shareInfo.infoContent}">
						${shareInfo.infoContent}
					</div>
				</td> --%> 
				<td>${shareInfo.viewTimes.viewtimes}</td>	
				<td><fmt:formatDate value="${shareInfo.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>							
			</tr>
		</c:forEach>    
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>